def base_code_pool():
    """BASE编号池 1-3 """
    for i in range(3):
        yield i + 1

a = base_code_pool()

print(next(a))
print(next(a))
print(next(a))